using Nop.Core.Domain.Directory;

namespace Nop.Data.Mapping.Directory
{
    public partial class OrganizationMap : NopEntityTypeConfiguration<Organization>
    {
        public OrganizationMap()
        {
            this.ToTable("Organization");
            this.HasKey(c => c.Id);
            
            this.Property(p => p.Name).IsRequired().HasMaxLength(50);
            this.Property(p => p.Address).HasMaxLength(50);
            this.Property(p => p.ContactWay).HasMaxLength(50);
        }
    }
}
